package engine.graphics.away3d
{
	import away3d.animators.data.*;
	import away3d.animators.skeleton.*;
	
	public class RxSkeletonAnimation extends AnimationBase
	{
		private var _skeleton:Skeleton;
		private var _jointsPerVertex:uint;
		
		public function RxSkeletonAnimation(skeleton:Skeleton, jointsPerVertex:uint = 4)
		{
			this._skeleton = skeleton;
			this._jointsPerVertex = jointsPerVertex;
		}
		
		public function get jointsPerVertex() : uint
		{
			return this._jointsPerVertex;
		}
		
		public function set jointsPerVertex(vertext:uint) : void
		{
			this._jointsPerVertex = vertext;
		}
		
		public function get skeleton() : Skeleton
		{
			return this._skeleton;
		}
		
		public function set skeleton(m_skeleton:Skeleton) : void
		{
			this._skeleton = m_skeleton;
		}
		
		public function get numJoints() : uint
		{
			return this._skeleton.numJoints;
		}
		
		public function createAnimationState() : AnimationStateBase
		{
			return new RxSkeletonAnimationState(this);
		}
	}
}